package com.emotionalEnvelope.edu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.emotionalEnvelope.edu.core.RestResponse;
import com.emotionalEnvelope.edu.dto.MyMsgDto;
import com.emotionalEnvelope.edu.model.Email;

import java.util.List;

public interface IEmailService extends IService<Email> {
    RestResponse<String> toSend(Email messages);

    RestResponse<String> reply(Email messages);

    RestResponse<String> read(Long id);

    RestResponse<String> allRead(Long userId);

    RestResponse<List<MyMsgDto>> showMyMessage(Long id);
}
